# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-chromedriver-autoinstaller
_pkgname=chromedriver-autoinstaller
pkgver=0.6.4
pkgrel=3
pkgdesc='Automatically install chromedriver that supports the currently installed version of chrome.'
url='https://pypi.org/project/chromedriver-autoinstaller/#files'
arch=('any')
license=('MIT')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('a0b99f69304a6c81681888e400ecadfaaf789e513f20cdf709d250dec093d968823efb375111110460b24bbea703514fb61476ac05e802ac1bba975c208a24b3')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

